tools/libxc+libxl+xl: Save v2 streams
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sun, 14 Jun 2015 15:36:11 +0000 (16:36 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 15 Jul 2015 10:22:54 +0000 (11:22 +0100)
commit210b4817529de3eae9db59fee500fcdf0d4a3aa5
treeaba36edce6d875f5d636c5eb2588e752ec559c07
parent7c4027c6a0bddcde74df2bf5c16421f2cbb19971
tools/libxc+libxl+xl: Save v2 streams

This is a complicated set of changes which must be done together for
bisectability.

 * libxl-save-helper is updated to unconditionally use libxc migration v2.
 * libxl compatibility workarounds in libxc are disabled for save operations.
 * libxl__stream_write_start() is logically spliced into the event location
   where libxl__xc_domain_save() used to reside.
 * Ownership of the helper state moves into stream_write_state.
 * xl is updated to indicate that the stream is now v2

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
---
v4:
 * Don't use _init() needlessly

v3: Many small changes, follwing similar review to the restore side
tools/libxc/Makefile
tools/libxl/libxl.h
tools/libxl/libxl_dom.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_save_helper.c
tools/libxl/libxl_stream_write.c
tools/libxl/xl_cmdimpl.c